<?php

namespace pam\Form;

/**
 * Description of IndicatorForm
 *
 * @author Robert Bwana
 */
use Zend\Form\Form;

class IndicatorForm extends Form {

    public function __construct($name = null, $options = array()) {
        parent::__construct($name, $options);

        $this->add(array(
            'name' => 'indicator-fieldset',
            'type' => 'pam\Form\IndicatorFieldset',
            'options' => array(
                'use_as_base_fieldset' => true
            )
        ));

        /*
          $this->add(array(
          'name' => 'reset',
          'type' => 'Reset',
          'attributes' => array(
          'value' => 'Clear',
          )
          ));
         * 
         */

        $this->add(array(
            'name' => 'submit',
            'type' => 'Submit',
            'attributes' => array(
                'value' => 'Save',
            )
        ));
    }

}
